/* HTTP服务器测试页面样式 - 纯AI生成 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --success-color: #48bb78;
    --warning-color: #feca57;
    --error-color: #f56565;
    --text-color: #2d3748;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    padding: 30px;
}

.ai-notice {
    background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.server-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-card .icon {
    font-size: 1.5em;
}

.server-card p {
    margin-bottom: 10px;
    color: #4a5568;
}

.server-card code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    display: block;
    margin-top: 10px;
    overflow-x: auto;
}

.features-section {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.features-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
}

.http-protocol {
    background: #fff5f5;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--error-color);
    margin-bottom: 30px;
}

.http-protocol h2 {
    color: #c53030;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.protocol-example {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
    position: relative;
}

.protocol-example::before {
    content: attr(data-title);
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.status-code {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-code strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.footer {
    background: var(--light-bg);
    padding: 30px;
    text-align: center;
    border-top: 3px solid var(--border-color);
    margin-top: 30px;
}

.footer p {
    color: #718096;
    margin-bottom: 10px;
}

.timestamp {
    font-size: 0.9em;
    color: #a0aec0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .content {
        padding: 20px;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.disclaimer {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.disclaimer h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.warning-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.warning-box p {
    margin: 1rem 0;
    font-size: 1.1rem;
    text-align: center;
}

.warning-box ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.warning-box li {
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 1rem;
}

.license-info {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.license-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}